/*********************\
* Author:Dzlua
* QQ:505544956
* Time:2017/04/11
\**********************/
#ifndef __LUA_BUTTON_H__
#define __LUA_BUTTON_H__
#pragma once

#include "../Text/LuaLabel.h"

namespace DuiLib {

class LuaButton : public LuaLabel
{
    SDLUA_CLASS_DECLARE(LuaButton);

    bool Activate();
    void SetEnabled(bool bEnable);
    //void DoEvent(TEventUI& event);

    int GetNormalImage(LuaState *L);
    int SetNormalImage(LuaState *L);
    int GetHotImage(LuaState *L);
    int SetHotImage(LuaState *L);
    int GetPushedImage(LuaState *L);
    int SetPushedImage(LuaState *L);
    int GetFocusedImage(LuaState *L);
    int SetFocusedImage(LuaState *L);
    int GetDisabledImage(LuaState *L);
    int SetDisabledImage(LuaState *L);
    int GetHotForeImage(LuaState *L);
    int SetHotForeImage(LuaState *L);

    void BindTabIndex(int _BindTabIndex);
    int BindTabLayoutName(LuaState *L);
    void BindTriggerTabSel(int _SetSelectIndex = -1);
    void RemoveBindTabIndex();
    int	 GetBindTabLayoutIndex();
    int GetBindTabLayoutName(LuaState *L);

    void SetHotBkColor(DWORD dwColor);
    DWORD GetHotBkColor();
    void SetPushedBkColor(DWORD dwColor);
    DWORD GetPushedBkColor();
    void SetHotTextColor(DWORD dwColor);
    DWORD GetHotTextColor();
    void SetPushedTextColor(DWORD dwColor);
    DWORD GetPushedTextColor();
    void SetFocusedTextColor(DWORD dwColor);
    DWORD GetFocusedTextColor();
    /*void SetAttribute(int pstrName, int pstrValue);

    void PaintText(HDC hDC);

    void PaintBkColor(HDC hDC);
    void PaintStatusImage(HDC hDC);
    void PaintForeImage(HDC hDC);*/
};

}

#endif //__LUA_BUTTON_H__